Translation:

22. When Joseph attained his full manhood We gave him power and knowledge: thus do We reward those who do right.